package top.tangyh.lamp.care.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import static com.baomidou.mybatisplus.annotation.SqlCondition.EQUAL;
import static top.tangyh.lamp.model.constant.Condition.LIKE;
import top.tangyh.basic.base.entity.Entity;


/**
 * <p>
 * 实体类
 * 全局的排班表
 * </p>
 *
 * @author zqb
 * @date 2024-07-18 15:42:26
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Builder
@TableName("b_work_plan")
public class BWorkPlan extends Entity<Long> {
    private static final long serialVersionUID = 1L;

    /**
     * 排班名称唯一
     */
    @TableField(value = "work_name", condition = LIKE)
    @Schema(description = "排班名称唯一")
    private String workName;
    /**
     * 开始时间 6:00 时分
     */
    @TableField(value = "start_time", condition = LIKE)
    @Schema(description = "开始时间 6:00 时分")
    private String startTime;
    /**
     * 结束时间 8:00 时分
     */
    @TableField(value = "end_time", condition = LIKE)
    @Schema(description = "结束时间 8:00 时分")
    private String endTime;
    /**
     * 间隔 分钟
     */
    @TableField("`interval`")
    @Schema(description = "间隔 分钟")
    private Integer interval;
    /**
     * 排序
     */
    @TableField(value = "sort", condition = EQUAL)
    @Schema(description = "排序")
    private Integer sort;
    /**
     * 是否启用
     */
    @TableField(value = "enabled", condition = EQUAL)
    @Schema(description = "是否启用")
    private Integer enabled;
    /**
     * 
     */

    /**
     * 是否删除
     */
    @TableField(value = "is_deleted", condition = EQUAL)
    @Schema(description = "是否删除")
    private Integer isDeleted;
    /**
     * 备注
     */
    @TableField("`desc`")
    @Schema(description = "备注")
    private String desc;
    /**
     * 跨天天数,默认为0
     */
    @TableField(value = "add_day", condition = EQUAL)
    @Schema(description = "跨天天数,默认为0")
    private Integer addDay;



}
